<!--
 * @Author: gaojinyu 1593026814@qq.com
 * @Date: 2023-12-19 17:06:13
 * @LastEditors: gaojinyu 1593026814@qq.com
 * @LastEditTime: 2023-12-20 16:22:24
 * @FilePath: \smart-community\src\components\BussComponents\PopulationSituation.vue
 * @Description: 
 * 
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. 
-->
<template>
  <BoxTitleBig title="人口态势" subTitle="人口统计">
    <template #body>
      <div class="peo_content">
        <div class="row1">
          <div class="col1">
            <VCharts :chartOption="chartData.option5()"></VCharts>
          </div>
          <div class="col2">
            <VCharts :chartOption="chartData.option6()"></VCharts>
          </div>
        </div>
        <div class="row2">
          <BoxTitleInCenter title="民族分析">
            <template #body>
              <div class="minzu">
                <VCharts :chartOption="chartData.option7()"></VCharts>
              </div>
            </template>
          </BoxTitleInCenter>
        </div>
      </div>
    </template>
  </BoxTitleBig>
</template>

<script setup>
import chartData from "@/config/chartOption.js"
</script>

<style lang="scss" scoped>
.peo_content{
  width: 100%;
  height: 100%;
  @include display(center,center,column);
  .row1,.row2{
    width: 100%;
  }
  .row1{
    @include display(space-around,center,row);
    height: 0;
    flex-grow: 1;
    margin-top: 37px;
    &>div{
      height: 100%;
      width: 0;
      flex-grow: 1;
    }
  }
  .row2{
    @include display(space-around,center,row);
    height: 0;
    flex-grow: 1;
    width: 100%;
    .minzu{
      width: 100%;
      height: 100%;
    }
  }
}
</style>